home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / crsr-tls.hqx / Cursor Utilities / cards.xml < prev    next >
Encoding:
Text File  |  1993-02-14  |  31.7 KB  |  750 lines

  1. card_5541.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>5541</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_5764.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>5304</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  13.     <part>
  14.         <id>7</id>
  15.         <type>button</type>
  16.         <visible> <true /> </visible>
  17.         <reserved5> 0 </reserved5>
  18.         <reserved4> 0 </reserved4>
  19.         <reserved3> 0 </reserved3>
  20.         <reserved2> 0 </reserved2>
  21.         <reserved1> 0 </reserved1>
  22.         <enabled> <true /> </enabled>
  23.         <rect>
  24.             <left>232</left>
  25.             <top>180</top>
  26.             <right>268</right>
  27.             <bottom>210</bottom>
  28.         </rect>
  29.         <style>transparent</style>
  30.         <showName> <false /> </showName>
  31.         <highlight> <false /> </highlight>
  32.         <autoHighlight> <false /> </autoHighlight>
  33.         <sharedHighlight> <true /> </sharedHighlight>
  34.         <family>0</family>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>26425</icon>
  37.         <textAlign>center</textAlign>
  38.         <font>Chicago</font>
  39.         <textSize>12</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <name>Next</name>
  42.         <script>on mouseUpvisual effect wipe leftgo nextend mouseUp</script>
  43.     </part>
  44.     <part>
  45.         <id>9</id>
  46.         <type>button</type>
  47.         <visible> <true /> </visible>
  48.         <reserved5> 0 </reserved5>
  49.         <reserved4> 0 </reserved4>
  50.         <reserved3> 0 </reserved3>
  51.         <reserved2> 0 </reserved2>
  52.         <reserved1> 0 </reserved1>
  53.         <enabled> <true /> </enabled>
  54.         <rect>
  55.             <left>150</left>
  56.             <top>180</top>
  57.             <right>186</right>
  58.             <bottom>210</bottom>
  59.         </rect>
  60.         <style>transparent</style>
  61.         <showName> <false /> </showName>
  62.         <highlight> <false /> </highlight>
  63.         <autoHighlight> <false /> </autoHighlight>
  64.         <sharedHighlight> <true /> </sharedHighlight>
  65.         <family>0</family>
  66.         <titleWidth>0</titleWidth>
  67.         <icon>1011</icon>
  68.         <textAlign>center</textAlign>
  69.         <font>Chicago</font>
  70.         <textSize>12</textSize>
  71.         <textStyle>plain</textStyle>
  72.         <name>Home</name>
  73.         <script>on mouseUpgo homeend mouseUp</script>
  74.     </part>
  75.     <part>
  76.         <id>14</id>
  77.         <type>field</type>
  78.         <visible> <true /> </visible>
  79.         <dontWrap> <false /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <false /> </fixedLineHeight>
  83.         <autoTab> <false /> </autoTab>
  84.         <lockText> <false /> </lockText>
  85.         <rect>
  86.             <left>6</left>
  87.             <top>69</top>
  88.             <right>410</right>
  89.             <bottom>179</bottom>
  90.         </rect>
  91.         <style>scrolling</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>9</textSize>
  102.         <textStyle>plain</textStyle>
  103.         <textHeight>12</textHeight>
  104.         <name>Copyright</name>
  105.         <script></script>
  106.     </part>
  107.     <content>
  108.         <layer>background</layer>
  109.         <id>2</id>
  110.         <text>Cursor UtilitiesIdleCursor & SetCursor</text>
  111.     </content>
  112.     <content>
  113.         <layer>background</layer>
  114.         <id>6</id>
  115.         <text>Dr N Perry, Department of Computer Sicence, Massey University,Palmerston North, New Zealand. Email: N.Perry@massey.ac.nz</text>
  116.     </content>
  117.     <content>
  118.         <layer>card</layer>
  119.         <id>14</id>
  120.         <text><span class="style1">ll XCMD & XFCN code resources and HyperCard stacks in this package, referred to as ΓÇ£Cursor UtilitiesΓÇ¥, are Copyright ┬⌐ 1989, 1991-3 by Nigel Perry. Code resources written using Think C so portions may be ┬⌐ Symantec</span><span class="style21">LICENSE AGREEMENT</span><span class="style1">(Don't panic! For most people the following just requires you to send a postcard to the above address, which will be added to my sonΓÇÖs collection. ShareWare authors must also send me a waiver for their fees. The rest of the gumph is an attempt [probably in vain] to protect myself for certain countries strange laws, and to stop people making money out of my work.)ΓÇ£You,ΓÇ¥ ΓÇ£your,ΓÇ¥ and the ΓÇ£userΓÇ¥ refers to any person wishing to use this software.ΓÇ£SoftwareΓÇ¥ refers to the computer program listed above, together with all codes, techniques, software tools, formats, designs, concepts, methods, ideas, and documentation associated with the computer program.  The term also includes all copies of any part of the software and documentation.ΓÇ£AuthorΓÇ¥ refers to the author of this software, Dr Nigel PerryThis software is owned by the author and contains valuable and proprietary information of the author. If you violate any part of this agreement, your right to use this software terminates automatically.  In the event of termination of this agreement, you must destroy all copies of this software and derivatives of this software in your possession.This software is being licensed to you as provided by the terms of this agreement.(1) You are permitted to copy and distribute this software unchanged and at no cost, provided that this notice is preserved on all copies, except as excluded below.(2) You may use this software for a period of 14 days for the purposes of evaluation.(3) If you wish to keep this software after 14 days then you must pay the appropriate license fee to the author. This is detailed below in (a) - (d).(4) You may not distribute this software to others unless the license fee has been paid, and then only as part of a derivative work.(5) You may not create any derivative works from this software for distribution unless the license fee has been paid.(6) You may not grant anybody use of this software except as an integral part of the use of a derivative work distributed according to this agreement.(7) You may not reverse engineer, disassemble, decompile, or otherwise attempt to discover the logic or source code to this software.(8) No warranty, either express or implied, is made with respect the softwares performance or fitness for purpose.</span><span class="style21">License Fees</span><span class="style1">(a) If you are not the author of ShareWare products, for your personal use or for inclusion in your own programs which you distribute for free. License fee: A postcard of your home town/region etc.(b) If you are an employee of one of your countries educational institutions or a worker for a registered charity and wish to use this software for your work. License fee: A postcard of your home town/region etc.(c) If you are an author of ShareWare and for your personal use. License fee: a waiver for your ShareWare fees granted by you to the author and a postcard of your home town/region etc.(d) If you are not covered by (a), (b) or (c) then you must contact the author for details of the license fee.</span></text>
  121.     </content>
  122.     <name>Intro</name>
  123.     <script>on openStackset the scroll of cd fld "Copyright" to 0pass openStackend openStackon arrowKey whichif which is "Right" thensend mouseUp to btn "Next"elseif which is not "Left" thenpass arrowKeyend ifend ifend arrowKey</script>
  124. </card>
  125.  
  126.  
  127. card_2867.xml
  128. <?xml version="1.0" encoding="utf-8" ?>
  129. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  130. <card>
  131.     <id>2867</id>
  132.     <filler1>0</filler1>
  133.     <cantDelete> <false /> </cantDelete>
  134.     <showPict> <true /> </showPict>
  135.     <dontSearch> <false /> </dontSearch>
  136.     <owner>2781</owner>
  137.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  138.     <content>
  139.         <layer>background</layer>
  140.         <id>3</id>
  141.         <text>Page 1 of 7</text>
  142.     </content>
  143.     <content>
  144.         <layer>background</layer>
  145.         <id>2</id>
  146.         <text><span class="style1">ormally HyperCard resets the cursor on </span><span class="style12">idle</span><span class="style1"> to the </span><span class="style12">browse</span><span class="style1"> cursor, thus preventing the HyperTalk programmer from making a permanent change to the cursor. The </span><span class="style12">idleCursor</span><span class="style1"> XCMD enables a programmer to set the browse cursor to something other than the pointing hand cursor, thus effecting a permanent cursor change.Usage:┬á┬á┬á┬á</span><span class="style13">idleCursor </span><span class="style14">cursor</span><span class="style1">where </span><span class="style12">cursor</span><span class="style1"> may either be a cursor name or number. To reinstate the default hand cursor you must use </span><span class="style13">idleCursor "Hand"</span><span class="style1">.</span><span class="style12">(Note: under Finder in systems prior to 7 the automatic subtitution of the hand cursor by another cursor will persist outside of HyperCard.)</span></text>
  147.     </content>
  148.     <content>
  149.         <layer>background</layer>
  150.         <id>9</id>
  151.         <text><span class="style1">he </span><span class="style11">idleCursor</span><span class="style1"> XCMD</span></text>
  152.     </content>
  153.     <name></name>
  154.     <script></script>
  155. </card>
  156.  
  157.  
  158. card_2150.xml
  159. <?xml version="1.0" encoding="utf-8" ?>
  160. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  161. <card>
  162.     <id>2150</id>
  163.     <filler1>0</filler1>
  164.     <cantDelete> <false /> </cantDelete>
  165.     <showPict> <true /> </showPict>
  166.     <dontSearch> <false /> </dontSearch>
  167.     <owner>2781</owner>
  168.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  169.     <content>
  170.         <layer>background</layer>
  171.         <id>3</id>
  172.         <text>Page 2 of 7</text>
  173.     </content>
  174.     <content>
  175.         <layer>background</layer>
  176.         <id>9</id>
  177.         <text><span class="style1">he </span><span class="style11">setCursor</span><span class="style1"> XCMD (1)</span></text>
  178.     </content>
  179.     <content>
  180.         <layer>background</layer>
  181.         <id>2</id>
  182.         <text><span class="style12">etCursor</span><span class="style1"> enables the HyperTalk programmer to; set the screen cursor to any location, to constrain the cursor to only follow the horizontal or vertical movement of the mouse, and to decouple the cursor from all mouse movements.</span><span class="style21">WARNING:</span><span class="style1"> (a) this XCMD allows you to violate the </span><span class="style12">Apple User Interface Guidelines </span><span class="style1">(Beware the Apple Thought Police!) (b) this XCMD manipulates (officiallyΓǪ) undocumented globals and may not work under future versions of the system software or on future Macs .</span><span class="style21">USE AT YOUR OWN RISK.</span></text>
  183.     </content>
  184.     <name></name>
  185.     <script></script>
  186. </card>
  187.  
  188.  
  189. card_4374.xml
  190. <?xml version="1.0" encoding="utf-8" ?>
  191. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  192. <card>
  193.     <id>4374</id>
  194.     <filler1>0</filler1>
  195.     <cantDelete> <false /> </cantDelete>
  196.     <showPict> <true /> </showPict>
  197.     <dontSearch> <false /> </dontSearch>
  198.     <owner>2781</owner>
  199.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  200.     <content>
  201.         <layer>background</layer>
  202.         <id>3</id>
  203.         <text>Page 3 of 7</text>
  204.     </content>
  205.     <content>
  206.         <layer>background</layer>
  207.         <id>9</id>
  208.         <text><span class="style1">he </span><span class="style11">setCursor</span><span class="style1"> XCMD (2)</span></text>
  209.     </content>
  210.     <content>
  211.         <layer>background</layer>
  212.         <id>2</id>
  213.         <text><span class="style21">etting The Cursor Location</span><span class="style1">To set the current location of the cursor use:</span><span class="style13">                setCursor </span><span class="style14">point</span><span class="style1"></span><span class="style13">                setCursor </span><span class="style14">h-coord, v-coord</span><span class="style1">Where </span><span class="style12">h-coord,v-coord</span><span class="style1">, or </span><span class="style12">point</span><span class="style1">, specifies the desired cursor location in </span><span class="style12">card-relative</span><span class="style1"> coordinates, i.e. 0,0 is the top left corner of the card window.Argument errors, such as an off screen location, are reported in </span><span class="style12">the result</span><span class="style1">, which will be </span><span class="style12">empty</span><span class="style1"> if no error occured.</span></text>
  214.     </content>
  215.     <name></name>
  216.     <script></script>
  217. </card>
  218.  
  219.  
  220. card_4611.xml
  221. <?xml version="1.0" encoding="utf-8" ?>
  222. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  223. <card>
  224.     <id>4611</id>
  225.     <filler1>0</filler1>
  226.     <cantDelete> <false /> </cantDelete>
  227.     <showPict> <true /> </showPict>
  228.     <dontSearch> <false /> </dontSearch>
  229.     <owner>2781</owner>
  230.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  231.     <content>
  232.         <layer>background</layer>
  233.         <id>3</id>
  234.         <text>Page 4 of 7</text>
  235.     </content>
  236.     <content>
  237.         <layer>background</layer>
  238.         <id>9</id>
  239.         <text><span class="style1">he </span><span class="style11">setCursor</span><span class="style1"> XCMD (3)</span></text>
  240.     </content>
  241.     <content>
  242.         <layer>background</layer>
  243.         <id>2</id>
  244.         <text><span class="style21">ontrolling the Cursor/Mouse Relationship</span><span class="style1">The relationship between the cursor and the mouse can be set by passing a sub-function code to </span><span class="style12">setCursor</span><span class="style1">. Whatever the relationship between the cursor & mouse, its absolute location can always be set using </span><span class="style12">setCursor</span><span class="style1">. (</span><span class="style21">Note</span><span class="style1">: Only the first four characters of sub-functions are significant. Invalid functions return an error in </span><span class="style12">the result</span><span class="style1">.)</span><span class="style13">setCursor horizontal</span><span class="style1">┬á┬á┬á┬á┬áConstrain the cursor to only follow horizontal mouse movement.</span><span class="style13">setCursor vertical</span><span class="style1">┬á┬á┬á┬á┬áConstrain the cursor to only follow vertical mouse movement.</span></text>
  245.     </content>
  246.     <name></name>
  247.     <script></script>
  248. </card>
  249.  
  250.  
  251. card_2516.xml
  252. <?xml version="1.0" encoding="utf-8" ?>
  253. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  254. <card>
  255.     <id>2516</id>
  256.     <filler1>0</filler1>
  257.     <cantDelete> <false /> </cantDelete>
  258.     <showPict> <true /> </showPict>
  259.     <dontSearch> <false /> </dontSearch>
  260.     <owner>2781</owner>
  261.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  262.     <content>
  263.         <layer>background</layer>
  264.         <id>3</id>
  265.         <text>Page 5 of 7</text>
  266.     </content>
  267.     <content>
  268.         <layer>background</layer>
  269.         <id>9</id>
  270.         <text><span class="style1">he </span><span class="style11">setCursor</span><span class="style1"> XCMD (4)</span></text>
  271.     </content>
  272.     <content>
  273.         <layer>background</layer>
  274.         <id>2</id>
  275.         <text><span class="style21">Controlling the Cursor/Mouse Relationship</span><span class="style1"></span><span class="style13">setCursor free</span><span class="style1">┬á┬á┬á┬á┬áDecouple the cursor from the mouse, that is remove all cursor┬á┬á┬á┬á┬ácontrol from the user. </span><span class="style11">BE CAREFUL!</span><span class="style1"></span><span class="style13">setCursor mouse</span><span class="style1">┬á┬á┬á┬á┬áRe-couple to the mouse and/or unconstrain the cursor.</span><span class="style13">setCursor reset</span><span class="style1">┬á┬á┬á┬á┬áRe-couple the cursor to the mouse </span><span class="style12">and</span><span class="style1"> return it to the location┬á┬á┬á┬á┬áwhere it was when decoupled. Same as </span><span class="style12">setCursor mouse</span><span class="style1"> if the┬á┬á┬á┬á┬ácursor was only constrained.</span></text>
  276.     </content>
  277.     <name></name>
  278.     <script></script>
  279. </card>
  280.  
  281.  
  282. card_4178.xml
  283. <?xml version="1.0" encoding="utf-8" ?>
  284. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  285. <card>
  286.     <id>4178</id>
  287.     <filler1>0</filler1>
  288.     <cantDelete> <false /> </cantDelete>
  289.     <showPict> <true /> </showPict>
  290.     <dontSearch> <false /> </dontSearch>
  291.     <owner>2781</owner>
  292.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  293.     <part>
  294.         <id>5</id>
  295.         <type>button</type>
  296.         <visible> <true /> </visible>
  297.         <reserved5> 0 </reserved5>
  298.         <reserved4> 0 </reserved4>
  299.         <reserved3> 0 </reserved3>
  300.         <reserved2> 0 </reserved2>
  301.         <reserved1> 0 </reserved1>
  302.         <enabled> <true /> </enabled>
  303.         <rect>
  304.             <left>143</left>
  305.             <top>62</top>
  306.             <right>243</right>
  307.             <bottom>84</bottom>
  308.         </rect>
  309.         <style>roundrect</style>
  310.         <showName> <true /> </showName>
  311.         <highlight> <false /> </highlight>
  312.         <autoHighlight> <false /> </autoHighlight>
  313.         <sharedHighlight> <true /> </sharedHighlight>
  314.         <family>0</family>
  315.         <titleWidth>0</titleWidth>
  316.         <icon>0</icon>
  317.         <textAlign>center</textAlign>
  318.         <font>Chicago</font>
  319.         <textSize>12</textSize>
  320.         <textStyle>plain</textStyle>
  321.         <name>Demo 1</name>
  322.         <script>on mouseUpsetCursor loc of button "Demo 2"end mouseUp</script>
  323.     </part>
  324.     <part>
  325.         <id>6</id>
  326.         <type>button</type>
  327.         <visible> <true /> </visible>
  328.         <reserved5> 0 </reserved5>
  329.         <reserved4> 0 </reserved4>
  330.         <reserved3> 0 </reserved3>
  331.         <reserved2> 0 </reserved2>
  332.         <reserved1> 0 </reserved1>
  333.         <enabled> <true /> </enabled>
  334.         <rect>
  335.             <left>143</left>
  336.             <top>140</top>
  337.             <right>243</right>
  338.             <bottom>162</bottom>
  339.         </rect>
  340.         <style>roundrect</style>
  341.         <showName> <true /> </showName>
  342.         <highlight> <false /> </highlight>
  343.         <autoHighlight> <false /> </autoHighlight>
  344.         <sharedHighlight> <true /> </sharedHighlight>
  345.         <family>0</family>
  346.         <titleWidth>0</titleWidth>
  347.         <icon>0</icon>
  348.         <textAlign>center</textAlign>
  349.         <font>Chicago</font>
  350.         <textSize>12</textSize>
  351.         <textStyle>plain</textStyle>
  352.         <name>Demo 2</name>
  353.         <script>on mouseUpSetCursor freeSetCursor 0,0wait 180SetCursor width of the card window, height of the card windowwait 120SetCursor resetend mouseUp</script>
  354.     </part>
  355.     <part>
  356.         <id>7</id>
  357.         <type>button</type>
  358.         <visible> <true /> </visible>
  359.         <reserved5> 0 </reserved5>
  360.         <reserved4> 0 </reserved4>
  361.         <reserved3> 0 </reserved3>
  362.         <reserved2> 0 </reserved2>
  363.         <reserved1> 0 </reserved1>
  364.         <enabled> <true /> </enabled>
  365.         <rect>
  366.             <left>274</left>
  367.             <top>10</top>
  368.             <right>404</right>
  369.             <bottom>32</bottom>
  370.         </rect>
  371.         <style>roundrect</style>
  372.         <showName> <true /> </showName>
  373.         <highlight> <false /> </highlight>
  374.         <autoHighlight> <true /> </autoHighlight>
  375.         <sharedHighlight> <true /> </sharedHighlight>
  376.         <family>0</family>
  377.         <titleWidth>0</titleWidth>
  378.         <icon>0</icon>
  379.         <textAlign>center</textAlign>
  380.         <font>Chicago</font>
  381.         <textSize>12</textSize>
  382.         <textStyle>plain</textStyle>
  383.         <name>Show Scripts</name>
  384.         <script>on mouseUpif the short name of me is "Show Scripts" thenshowScriptselsehideScriptsend ifend mouseUp</script>
  385.     </part>
  386.     <part>
  387.         <id>9</id>
  388.         <type>field</type>
  389.         <visible> <false /> </visible>
  390.         <dontWrap> <false /> </dontWrap>
  391.         <dontSearch> <false /> </dontSearch>
  392.         <sharedText> <false /> </sharedText>
  393.         <fixedLineHeight> <false /> </fixedLineHeight>
  394.         <autoTab> <false /> </autoTab>
  395.         <lockText> <false /> </lockText>
  396.         <rect>
  397.             <left>0</left>
  398.             <top>42</top>
  399.             <right>416</right>
  400.             <bottom>240</bottom>
  401.         </rect>
  402.         <style>scrolling</style>
  403.         <autoSelect> <false /> </autoSelect>
  404.         <showLines> <false /> </showLines>
  405.         <wideMargins> <false /> </wideMargins>
  406.         <multipleLines> <false /> </multipleLines>
  407.         <reservedFamily> 0 </reservedFamily>
  408.         <titleWidth>0</titleWidth>
  409.         <icon>0</icon>
  410.         <textAlign>left</textAlign>
  411.         <font>Monaco</font>
  412.         <textSize>9</textSize>
  413.         <textStyle>plain</textStyle>
  414.         <textHeight>12</textHeight>
  415.         <name>Scripts</name>
  416.         <script></script>
  417.     </part>
  418.     <content>
  419.         <layer>background</layer>
  420.         <id>3</id>
  421.         <text>Page 6 of 8</text>
  422.     </content>
  423.     <content>
  424.         <layer>background</layer>
  425.         <id>9</id>
  426.         <text>Examples (1)</text>
  427.     </content>
  428.     <content>
  429.         <layer>background</layer>
  430.         <id>2</id>
  431.         <text><span class="style1">f you push button ΓÇ£Demo 1ΓÇ¥, the cursor will jump to  ΓÇ£Demo 2ΓÇ¥.If you push button ΓÇ£Demo2ΓÇ¥ the cursor is freed from the mouse and jumps to the top left corner of the card ΓÇô try moving the mouseΓǪ After a few seconds the cursor will jump to the bottom right, pause again and then return back to the button.</span><span class="style21">WARNING</span><span class="style1">: If you abort the  above demo by typing ΓÇ£Command-.ΓÇ¥ your cursor and mouse will be decoupled, making life rather difficult! To avoid embarrassment to those of you who are bound to try it, the </span><span class="style12">closeCard</span><span class="style1"> handler issues a </span><span class="style12">setCursor mouse</span><span class="style1">.</span></text>
  432.     </content>
  433.     <name></name>
  434.     <script>on closeCardidleCursor "hand" -- just in casesetCursor mouse -- dittohideScriptspass closeCardend closeCard</script>
  435. </card>
  436.  
  437.  
  438. card_4967.xml
  439. <?xml version="1.0" encoding="utf-8" ?>
  440. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  441. <card>
  442.     <id>4967</id>
  443.     <filler1>0</filler1>
  444.     <cantDelete> <false /> </cantDelete>
  445.     <showPict> <true /> </showPict>
  446.     <dontSearch> <false /> </dontSearch>
  447.     <owner>2781</owner>
  448.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  449.     <part>
  450.         <id>6</id>
  451.         <type>button</type>
  452.         <visible> <true /> </visible>
  453.         <reserved5> 0 </reserved5>
  454.         <reserved4> 0 </reserved4>
  455.         <reserved3> 0 </reserved3>
  456.         <reserved2> 0 </reserved2>
  457.         <reserved1> 0 </reserved1>
  458.         <enabled> <true /> </enabled>
  459.         <rect>
  460.             <left>70</left>
  461.             <top>103</top>
  462.             <right>109</right>
  463.             <bottom>142</bottom>
  464.         </rect>
  465.         <style>shadow</style>
  466.         <showName> <false /> </showName>
  467.         <highlight> <false /> </highlight>
  468.         <autoHighlight> <false /> </autoHighlight>
  469.         <sharedHighlight> <true /> </sharedHighlight>
  470.         <family>0</family>
  471.         <titleWidth>0</titleWidth>
  472.         <icon>27009</icon>
  473.         <textAlign>center</textAlign>
  474.         <font>Chicago</font>
  475.         <textSize>12</textSize>
  476.         <textStyle>plain</textStyle>
  477.         <name>Hori</name>
  478.         <script>on mouseUpSetCursor horiidleCursor "horiz"hide meend mouseUp</script>
  479.     </part>
  480.     <part>
  481.         <id>7</id>
  482.         <type>button</type>
  483.         <visible> <true /> </visible>
  484.         <reserved5> 0 </reserved5>
  485.         <reserved4> 0 </reserved4>
  486.         <reserved3> 0 </reserved3>
  487.         <reserved2> 0 </reserved2>
  488.         <reserved1> 0 </reserved1>
  489.         <enabled> <true /> </enabled>
  490.         <rect>
  491.             <left>372</left>
  492.             <top>103</top>
  493.             <right>411</right>
  494.             <bottom>142</bottom>
  495.         </rect>
  496.         <style>shadow</style>
  497.         <showName> <false /> </showName>
  498.         <highlight> <false /> </highlight>
  499.         <autoHighlight> <false /> </autoHighlight>
  500.         <sharedHighlight> <true /> </sharedHighlight>
  501.         <family>0</family>
  502.         <titleWidth>0</titleWidth>
  503.         <icon>2335</icon>
  504.         <textAlign>center</textAlign>
  505.         <font>Chicago</font>
  506.         <textSize>12</textSize>
  507.         <textStyle>plain</textStyle>
  508.         <name>Vert</name>
  509.         <script>on mouseUpSetCursor vertidleCursor "Vert"hide meend mouseUp</script>
  510.     </part>
  511.     <part>
  512.         <id>8</id>
  513.         <type>button</type>
  514.         <visible> <true /> </visible>
  515.         <reserved5> 0 </reserved5>
  516.         <reserved4> 0 </reserved4>
  517.         <reserved3> 0 </reserved3>
  518.         <reserved2> 0 </reserved2>
  519.         <reserved1> 0 </reserved1>
  520.         <enabled> <true /> </enabled>
  521.         <rect>
  522.             <left>372</left>
  523.             <top>177</top>
  524.             <right>411</right>
  525.             <bottom>216</bottom>
  526.         </rect>
  527.         <style>shadow</style>
  528.         <showName> <false /> </showName>
  529.         <highlight> <false /> </highlight>
  530.         <autoHighlight> <false /> </autoHighlight>
  531.         <sharedHighlight> <true /> </sharedHighlight>
  532.         <family>0</family>
  533.         <titleWidth>0</titleWidth>
  534.         <icon>4973</icon>
  535.         <textAlign>center</textAlign>
  536.         <font>Chicago</font>
  537.         <textSize>12</textSize>
  538.         <textStyle>plain</textStyle>
  539.         <name>Both</name>
  540.         <script>on mouseUpSetCursor mousidleCursor "Hand"show cd btn "Hori"show cd btn "Vert"end mouseUp</script>
  541.     </part>
  542.     <part>
  543.         <id>9</id>
  544.         <type>button</type>
  545.         <visible> <true /> </visible>
  546.         <reserved5> 0 </reserved5>
  547.         <reserved4> 0 </reserved4>
  548.         <reserved3> 0 </reserved3>
  549.         <reserved2> 0 </reserved2>
  550.         <reserved1> 0 </reserved1>
  551.         <enabled> <true /> </enabled>
  552.         <rect>
  553.             <left>289</left>
  554.             <top>180</top>
  555.             <right>348</right>
  556.             <bottom>203</bottom>
  557.         </rect>
  558.         <style>roundrect</style>
  559.         <showName> <true /> </showName>
  560.         <highlight> <false /> </highlight>
  561.         <autoHighlight> <false /> </autoHighlight>
  562.         <sharedHighlight> <true /> </sharedHighlight>
  563.         <family>0</family>
  564.         <titleWidth>0</titleWidth>
  565.         <icon>0</icon>
  566.         <textAlign>center</textAlign>
  567.         <font>Chicago</font>
  568.         <textSize>12</textSize>
  569.         <textStyle>plain</textStyle>
  570.         <name>Wander</name>
  571.         <script>on mouseWithinput the mouseH + random(3) - 2 into hput the mouseV + random(3) - 2 into vSetCursor h,vend mouseWithin</script>
  572.     </part>
  573.     <part>
  574.         <id>10</id>
  575.         <type>button</type>
  576.         <visible> <true /> </visible>
  577.         <reserved5> 0 </reserved5>
  578.         <reserved4> 0 </reserved4>
  579.         <reserved3> 0 </reserved3>
  580.         <reserved2> 0 </reserved2>
  581.         <reserved1> 0 </reserved1>
  582.         <enabled> <true /> </enabled>
  583.         <rect>
  584.             <left>289</left>
  585.             <top>205</top>
  586.             <right>348</right>
  587.             <bottom>228</bottom>
  588.         </rect>
  589.         <style>roundrect</style>
  590.         <showName> <true /> </showName>
  591.         <highlight> <false /> </highlight>
  592.         <autoHighlight> <false /> </autoHighlight>
  593.         <sharedHighlight> <true /> </sharedHighlight>
  594.         <family>0</family>
  595.         <titleWidth>0</titleWidth>
  596.         <icon>0</icon>
  597.         <textAlign>center</textAlign>
  598.         <font>Chicago</font>
  599.         <textSize>12</textSize>
  600.         <textStyle>plain</textStyle>
  601.         <name>Bounce</name>
  602.         <script>on mouseEnterglobal hdelta, vdeltaput 1 into hdeltaput 1 into vdeltaend mouseEnteron mouseWithinglobal hdelta, vdeltaput the mouseH into hput the mouseV into vif (hdelta = 1) and (h = right of me - 1) then put -1 into hdeltaelse if (hdelta = -1) and (h = left of me)thenput 1 into hdeltaend ifif (vdelta = 1) and (v = bottom of me - 1) then put -1 into vdeltaelse if (vdelta = -1) and (v = top of me)thenput 1 into vdeltaend ifSetCursor h+hdelta,v+vdeltaend mouseWithin</script>
  603.     </part>
  604.     <part>
  605.         <id>11</id>
  606.         <type>field</type>
  607.         <visible> <false /> </visible>
  608.         <dontWrap> <false /> </dontWrap>
  609.         <dontSearch> <false /> </dontSearch>
  610.         <sharedText> <false /> </sharedText>
  611.         <fixedLineHeight> <false /> </fixedLineHeight>
  612.         <autoTab> <false /> </autoTab>
  613.         <lockText> <false /> </lockText>
  614.         <rect>
  615.             <left>0</left>
  616.             <top>42</top>
  617.             <right>416</right>
  618.             <bottom>240</bottom>
  619.         </rect>
  620.         <style>scrolling</style>
  621.         <autoSelect> <false /> </autoSelect>
  622.         <showLines> <false /> </showLines>
  623.         <wideMargins> <false /> </wideMargins>
  624.         <multipleLines> <false /> </multipleLines>
  625.         <reservedFamily> 0 </reservedFamily>
  626.         <titleWidth>0</titleWidth>
  627.         <icon>0</icon>
  628.         <textAlign>left</textAlign>
  629.         <font>Monaco</font>
  630.         <textSize>9</textSize>
  631.         <textStyle>plain</textStyle>
  632.         <textHeight>12</textHeight>
  633.         <name>Scripts</name>
  634.         <script></script>
  635.     </part>
  636.     <part>
  637.         <id>12</id>
  638.         <type>button</type>
  639.         <visible> <true /> </visible>
  640.         <reserved5> 0 </reserved5>
  641.         <reserved4> 0 </reserved4>
  642.         <reserved3> 0 </reserved3>
  643.         <reserved2> 0 </reserved2>
  644.         <reserved1> 0 </reserved1>
  645.         <enabled> <true /> </enabled>
  646.         <rect>
  647.             <left>274</left>
  648.             <top>10</top>
  649.             <right>404</right>
  650.             <bottom>32</bottom>
  651.         </rect>
  652.         <style>roundrect</style>
  653.         <showName> <true /> </showName>
  654.         <highlight> <false /> </highlight>
  655.         <autoHighlight> <true /> </autoHighlight>
  656.         <sharedHighlight> <true /> </sharedHighlight>
  657.         <family>0</family>
  658.         <titleWidth>0</titleWidth>
  659.         <icon>0</icon>
  660.         <textAlign>center</textAlign>
  661.         <font>Chicago</font>
  662.         <textSize>12</textSize>
  663.         <textStyle>plain</textStyle>
  664.         <name>Show Scripts</name>
  665.         <script>on mouseUpif the short name of me is "Show Scripts" thenshowScriptselsehideScriptsend ifend mouseUp</script>
  666.     </part>
  667.     <content>
  668.         <layer>background</layer>
  669.         <id>3</id>
  670.         <text>Page 7 of 8</text>
  671.     </content>
  672.     <content>
  673.         <layer>background</layer>
  674.         <id>9</id>
  675.         <text>Examples (2)</text>
  676.     </content>
  677.     <content>
  678.         <layer>background</layer>
  679.         <id>2</id>
  680.         <text><span class="style1">he three buttons below demonstrate the axis constraining functions of </span><span class="style12">setCursor</span><span class="style1">. Once you press the left arrow button the only other button you will be able to press is the down arrow one, after pressing that one you must press the mouse button to get your cursor back to normal:</span><span class="style12"></span><span class="style1">The button handlers also set the cursor using </span><span class="style12">idleCursor</span><span class="style1">. This ensures the cursor change remains, even if HyperCard idles.Finally, try placing the cursor over these buttons:</span></text>
  681.     </content>
  682.     <name></name>
  683.     <script>on closeCardidleCursor "hand" -- just in casesetCursor mouse -- dittohideScriptspass closeCardend closeCard</script>
  684. </card>
  685.  
  686.  
  687. card_5889.xml
  688. <?xml version="1.0" encoding="utf-8" ?>
  689. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  690. <card>
  691.     <id>5889</id>
  692.     <filler1>0</filler1>
  693.     <cantDelete> <false /> </cantDelete>
  694.     <showPict> <true /> </showPict>
  695.     <dontSearch> <false /> </dontSearch>
  696.     <owner>2781</owner>
  697.     <link rel="stylesheet" type="text/css" href="stylesheet_3160.css" />
  698.     <part>
  699.         <id>1</id>
  700.         <type>field</type>
  701.         <visible> <true /> </visible>
  702.         <dontWrap> <false /> </dontWrap>
  703.         <dontSearch> <false /> </dontSearch>
  704.         <sharedText> <false /> </sharedText>
  705.         <fixedLineHeight> <false /> </fixedLineHeight>
  706.         <autoTab> <false /> </autoTab>
  707.         <lockText> <false /> </lockText>
  708.         <rect>
  709.             <left>5</left>
  710.             <top>42</top>
  711.             <right>410</right>
  712.             <bottom>217</bottom>
  713.         </rect>
  714.         <style>scrolling</style>
  715.         <autoSelect> <false /> </autoSelect>
  716.         <showLines> <false /> </showLines>
  717.         <wideMargins> <false /> </wideMargins>
  718.         <multipleLines> <false /> </multipleLines>
  719.         <reservedFamily> 0 </reservedFamily>
  720.         <titleWidth>0</titleWidth>
  721.         <icon>0</icon>
  722.         <textAlign>left</textAlign>
  723.         <font>Palatino</font>
  724.         <textSize>12</textSize>
  725.         <textStyle>plain</textStyle>
  726.         <textHeight>16</textHeight>
  727.         <name>Info</name>
  728.         <script></script>
  729.     </part>
  730.     <content>
  731.         <layer>background</layer>
  732.         <id>3</id>
  733.         <text>Page 8 of 8</text>
  734.     </content>
  735.     <content>
  736.         <layer>background</layer>
  737.         <id>9</id>
  738.         <text>That's All FolksΓǪ</text>
  739.     </content>
  740.     <content>
  741.         <layer>card</layer>
  742.         <id>1</id>
  743.         <text><span class="style21">ersion History</span><span class="style1"></span><span class="style21">1.0 Feb 93</span><span class="style1">: The </span><span class="style12">setCursor</span><span class="style1"> XCMD was first released in 1989 as part of the ΓÇ£XCMD MiscellanyΓÇ¥ stack. For ΓÇ£Cursor UtilitiesΓÇ¥ it has been updated, adding the vertical & horizontal constraining options and handling of screen sizes larger than the card. The constraining options were requested by Patrick Haggard, who also acted as beta tester ΓÇô thanks. The </span><span class="style12">idleCursor</span><span class="style1"> XCMD was earlier released as part of the </span><span class="style12">Pictoid Package</span><span class="style1"> (see below) and has been included as it complements </span><span class="style12">setCursor</span><span class="style1">.</span><span class="style21">Also By The Same Author</span><span class="style1">The following are a selection of other packages I have released. Most of these should be available from the usual ftp sites.</span><span class="style21">Pictoid Package</span><span class="style1">┬á┬á┬á┬á┬áThis package supports the display of B&W or colour pictures and QuickTimeΓäó movies in HyperCard. The pictures/movies are displayed in borderless any shape windows, called </span><span class="style12">pictoids</span><span class="style1">, which makes them appear as though drawn directly on the card. Each pictoid can also be assigned scripts in a similar way to buttons, enabling picture & movie buttons to be constructed. Full control over movie playback is provided from HyperTalk. (Version 2 is under development which adds support for movie controllers and movie event, such as rate change or specified time point, triggered HyperTalk scripts.) The package also includes </span><span class="style12">Sticky Buttons</span><span class="style1">, which are buttons that can be imbedded in text and move with it if scrolled, and a number of other useful utilities.</span><span class="style21">Colour Text Package</span><span class="style1">┬á┬á┬á┬á┬áThis package supports the use of coloured text in HyperCard fields.</span><span class="style21">Print To QuickTimeΓäó</span><span class="style1">┬á┬á┬á┬á┬áThis is an extension for B. Raoult's </span><span class="style12">Print2Pict</span><span class="style1"> printer driver. It enables just about any (I don't use many Microsoft productsΓǪ) application that can print to produce QuickTimeΓäó movies.</span></text>
  744.     </content>
  745.     <name></name>
  746.     <script>on openCardset the scroll of cd fld "info" to 0pass openCardend openCard</script>
  747. </card>
  748.  
  749.  
  750.